-- GENERATED SPELL FOR [Sickly Refugee] --


function spell0_2054(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(2589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2054', 595, 1)
end

function spell1_2054(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(1776,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2054', 4000, 1)
end

function spell2_2054(pUnit, Event) --@Trip,n/a--
pUnit:FullCastSpellOnTarget(101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2054', 3000, 1)
end

function Sorts_2054(pUnit, Event)
local choix_sorts_2054 = math.random(0, 2)
if choix_sorts_2054 == 0 then
pUnit:RegisterEvent('spell0_2054', 1, 1)
end
if choix_sorts_2054 == 1 then
pUnit:RegisterEvent('spell1_2054', 1, 1)
end
if choix_sorts_2054 == 2 then
pUnit:RegisterEvent('spell2_2054', 1, 1)
end
end

function mob2054_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2054', math.random(1500, 3000), 1)
end

function mob2054_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2054_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2054_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2054, 1, 'mob2054_Action')
RegisterUnitEvent(2054, 2, 'mob2054_Leave')
RegisterUnitEvent(2054, 3, 'mob2054_Kill')
RegisterUnitEvent(2054, 4, 'mob2054_Die')
